﻿using Modbus.Common;
using ModbusLib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using WPFExcelReport.Helpers;
using ReflectionStudio.Core.Events;
using ModbusLib.Protocols;
namespace WPFExcelReport
{

    public partial class CC5D99RS
    {

        public static object PlcWrite(string command, object SlaveId, object StartAddress, object DataLength, object DataSend) 
        {
            byte[] data = null;
            try
            {
                switch (command)
                {
                    default:
                    case "R":
                        break;
                    case "T":
                        break;
                    case "Z":
                        break;
                }
               // data = System.Text.Encoding.ASCII.GetBytes(command);

            }
            catch (Exception ex)
            {
                Helpers.LogHelper.error(ex.StackTrace+ex.Message);
            }
            return data;

        }
    }
}
